plat: rcar: Print DRAM configuration after init
authorMarek Vasut <[email protected]>
Tue, 2 Oct 2018 13:12:15 +0000 (15:12 +0200)
committerMarek Vasut <[email protected]>
Thu, 6 Dec 2018 00:59:10 +0000 (01:59 +0100)
Print the DRAM configuration only after the DRAM was initialized. This
will be useful when deduplicating code populating FDT passed to U-Boot,
since it will contain the same macros as bl2_advertise_dram_size().

Signed-off-by: Marek Vasut <[email protected]>
plat/renesas/rcar/bl2_plat_setup.c

index a6e50b5ee4b36cd7e0c418bbac29a7e955f8aba8..b28653947f5de390b67eabc98b6fd5afb5be0b54 100644 (file)
@@ -556,9 +556,6 @@ lcm_state:
        bl2_tzram_layout.total_base = BL31_BASE;
        bl2_tzram_layout.total_size = BL31_LIMIT - BL31_BASE;
 
-       /* Print DRAM layout */
-       bl2_advertise_dram_size(product);
-
        if (boot_cpu == MODEMR_BOOT_CPU_CA57 ||
            boot_cpu == MODEMR_BOOT_CPU_CA53) {
                ret = rcar_dram_init();
@@ -569,6 +566,9 @@ lcm_state:
                rcar_qos_init();
        }
 
+       /* Print DRAM layout */
+       bl2_advertise_dram_size(product);
+
        if (boot_dev == MODEMR_BOOT_DEV_EMMC_25X1 ||
            boot_dev == MODEMR_BOOT_DEV_EMMC_50X8) {
                if (rcar_emmc_init() != EMMC_SUCCESS) {